package com.qifan.energy.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.qifan.energy.R;
import com.qifan.energy.bean.model.HomeQuickItem;

import java.util.List;

public class QuickItem2Adapter extends BaseQuickAdapter<HomeQuickItem,BaseViewHolder> {

    public QuickItem2Adapter(@Nullable List<HomeQuickItem> data) {
        super(R.layout.item_home_quick2, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, HomeQuickItem item) {
        helper.setText(R.id.title_tv,item.getTitle());
        helper.setImageResource(R.id.icon_iv,item.getRes());
        /*helper.setImageResource(R.id.icon_iv,R.mipmap.ic_game_playernotice);*/
    }
}
